package com.intretech.umsin.auth.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @version V1.0
 * @ClassName: SmsLoginBody
 * @Description: 功能描述 短信登录对象
 * @author: 李启联
 * @date: 2022-8-8 15:14
 * @Copyright: Copyright (c) 2022
 */
@ApiModel("短信登录对象")
public class SmsLoginBody implements Serializable {

    /**
     * 用户手机号
     */
    @NotBlank(message = " user phonenumber not blank ")
    @ApiModelProperty(value = "用户手机号")
    private String phonenumber;

    /**
     * 短信验证码
     */
    @NotBlank(message = " sms code not blank}")
    @ApiModelProperty(value = "短信验证码")
    private String smsCode;

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public String getSmsCode() {
        return smsCode;
    }

    public void setSmsCode(String smsCode) {
        this.smsCode = smsCode;
    }

    public SmsLoginBody() {
    }

    public SmsLoginBody(String phonenumber, String smsCode) {
        this.phonenumber = phonenumber;
        this.smsCode = smsCode;
    }

    @Override
    public String toString() {
        return "SmsLoginBody{" +
                "phonenumber='" + phonenumber + '\'' +
                ", smsCode='" + smsCode + '\'' +
                '}';
    }
}
